<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Food.com - Recipes, Food Ideas And Videos</title>
    <link rel="stylesheet" href="css/cssreset.css">
    <link rel="shortcut icon" href="images/favicon.ico">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="css/style.css">
    <script src="js/jquery-3.0.0.min.js"></script>
    <script src="js/bootstrap.min.js"></script>   
</head>

<body>
    
    <header>
    <div class="big_top">
        <!-- -----轮播----- --> 
        <div class="banner">
            <!-- -----导航----- -->
            <div class="top_nav">
                <nav class="navbar navbar-default mynavbar">
                    <div class="container-fluid mycontainer-fluid">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">
                        <a class="navbar-brand" href="#">
                            <img src="./images/logo.png" alt="">
                        </a>
                    </div>
                
                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class=" mycollapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav">
                        <li><a href="#"><span>RECIPES</span></a></li>
                        <li><a href="#">POPULAR</a></li>
                        <li><a href="#">SUMMER GRILLING</a></li>
                        </ul>
                        
                        <ul class="nav navbar-nav navbar-right">
                        <li><a href="#"><span class="glyphicon glyphicon-search" aria-hidden="true"></span><p>SEARCH</p></a></li>
                        <li><a href="#"><span class="glyphicon glyphicon-bookmark" aria-hidden="true"></span><p>SAVES</p></a></li>
                        <li><a href="#"><span class="glyphicon glyphicon glyphicon-user" aria-hidden="true"></span><p>SIGN IN</p></a></li>
                        </ul>
                    </div><!-- /.navbar-collapse -->
                    </div><!-- /.container-fluid -->
                </nav>
            </div>
			<ul class="banner_ul">
				<li><img src="./images/banner1.jpg" alt=""><span>PIZZA</span></li>
                <li><img src="./images/banner2.jpg" alt=""><span>STEP BY STEP</span></li>
                <li><img src="./images/banner5.jpg" alt=""><span>NACHO FIRES</span></li>
            </ul>
			<div class="left_span"><span class="b_left glyphicon glyphicon-chevron-left"></span></div>
			<div class="right_span"><span class="b_right glyphicon glyphicon-chevron-right"></span></div>   
            
            <div class="title">
                <ul>
                    <li><h1><a href="#">101 Favorite Copycat Eats</a></h1></li>
                    <li style="display: none;"><h1><a href="#">How to Make the Ultimate Fruit Tray</a></h1></li>
                    <li style="display: none;"><h1><a href="#">Top 100 Grilling Recipes</a></h1></li>
                </ul>
            </div>
        </div>
    </div> 
    </header>      
    <main>
        <div class="main_box">
            <div class="top_ul col-md-8 col-md-offset-2">
                <div class="wrap">
                    <ul class="clearfix">
                        <li>
                            <img src="./images/li1.jpg" alt="">
                            <div class="text_box">
                            <p>HOW TO MAKE THE ULTIMATE FRUIT TRAY</p>
                            </div>
                        </li>
                        <li>
                            <img src="./images/li2.jpg" alt="">
                            <div class="text_box">
                            <p>101 FAVORITE COPYCAT EATS</p>
                            </div>
                        </li>
                        <li>
                            <img src="./images/li3.jpg" alt="">
                            <div class="text_box">
                            <p>TOP 100 GRILLING RECIPES</p>
                            </div>
                        </li>
                    </ul>
                    <h6>Welcome to Food.com: Dig into our <a href="#" style="color: powderblue;">63 TOP PINTEREST RECIPES</a> and save room for dessert!</h6>
                </div>

                <div class="comment_box">
                </div>

                <div class="bottom_wrap">
                    <ul class="clearfix">
                        <li>
                            <img src="./images/li4.jpg" alt="">
                            <div class="text_box">
                            <p>HOW TO MAKE THE ULTIMATE FRUIT TRAY</p>
                            </div>
                        </li>
                        <li>
                            <img src="./images/li5.jpg" alt="">
                            <div class="text_box">
                            <p>101 FAVORITE COPYCAT EATS</p>
                            </div>
                        </li>
                        <li>
                            <img src="./images/li6.jpg" alt="">
                            <div class="text_box">
                            <p>TOP 100 GRILLING RECIPES</p>
                            </div>
                        </li>
                    </ul>
                </div>

                <div class="advertisement">
                    <a href="#">
                        <img src="./images/advertise.jpg" alt="">
                    </a>
                    <h6 style="text-align: center;">ADEVERTISEMENT</h6>
                </div>
            </div>
            <div class="trending">
                <div class="center">
                    <div class='col-md-12 tre_title'>
                        <div class="col-md-8">
                        <a href="#"><h4>TRENDING RECIPES</h4></a>
                        </div>
                        <div class="col-md-4 view_more">
                        <a href="#"><p>View more></p></a>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6 col-md-2">
                            <div class="thumbnail">
                                <img src="./images/li7.jpg" alt="...">
                                <div class="caption">
                                <a href="#"><h5>Tasty Crock Pot BBQ Country Style Pork Ribs</h5></a>
                                <p>by <a href="#">Happy Happy George</a></p>
                                <p>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                </p>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-md-2">
                            <div class="thumbnail">
                                <img src="./images/li8.jpg" alt="...">
                                <div class="caption">
                                <a href="#"><h5>Bouillabaisse</h5></a>
                                <p>by <a href="#">Rita1652</a></p>
                                <p>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                </p>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-md-2">
                            <div class="thumbnail">
                                <img src="./images/li9.jpg" alt="...">
                                <div class="caption">
                                <a href="#"><h5>Olive Garden Chicken and Shrimp Carbonara</h5></a>
                                <p>by <a href="#">Chef #919372</a></p>
                                <p>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                </p>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-md-2">
                            <div class="thumbnail">
                                <img src="./images/li10.jpg" alt="...">
                                <div class="caption">
                                <a href="#"><h5>Georgia Cornbread Cake</h5></a>
                                <p>by <a href="#">Barb G.</a></p>
                                <p>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                </p>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-md-2">
                            <div class="thumbnail">
                                <img src="./images/li11.jpg" alt="...">
                                <div class="caption">
                                <a href="#"><h5>Tasty Crock Pot BBQ Country Style Pork Ribs</h5></a>
                                <p>by <a href="#">Happy Happy George</a></p>
                                <p>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                </p>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-md-2">
                            <div class="thumbnail">
                                <img src="./images/li3.jpg" alt="...">
                                <div class="caption">
                                <a href="#"><h5>Tasty Crock Pot BBQ Country Style Pork Ribs</h5></a>
                                <p>by <a href="#">Happy Happy George</a></p>
                                <p>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                    <span class="glyphicon glyphicon-star"></span>
                                </p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="top_collection">
                <div class="col_center">
                    <div class='col-md-12 tre_title'>
                        <div class="col-md-12">
                        <a href="#"><h4>TOP COLLECTION</h4></a>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6 col-md-3 left_col">
                        <a href="#" class="thumbnail">
                            <img src="./images/col1.jpg" alt="...">
                        </a>
                        <span><a href="#">PHOTOS</a></span>
                        <h3><a href="#">88 ALL-TIME DINNER FAVORITES</a></h3>
                        </div>
                        <div class="col-xs-6 col-md-6 central_col">
                            <a href="#" class="thumbnail">
                            <img src="./images/col2.jpg" alt="...">
                            </a>
                            <span><a href="#">PHOTOS</a></span>
                            <h3><a href="#">TOP 100 GRILLING RECIPES</a></h3>
                        </div>
                        <div class="col-xs-6 col-md-3 right_col">
                            <a href="#" class="thumbnail">
                            <img src="./images/col3.jpg" alt="...">
                            </a>
                            <span><a href="#">PHOTOS</a></span>
                            <h3><a href="#">OUR 50 MOST-SAVED RECIPES</a></h3>
                        </div>
                    </div>
                </div>
            </div>

            <div class="trending new_recipes">
                <div class="center">
                    <div class='col-md-12 tre_title'>
                        <div class="col-md-8">
                        <a href="#"><h4>NEWEST RECIPES</h4></a>
                        </div>
                        <div class="col-md-4 view_more">
                        <a href="#"><p>View more></p></a>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6 col-md-2">
                            <div class="thumbnail">
                                <img src="./images/new1.jpg" alt="...">
                                <div class="caption">
                                <a href="#"><h5>Apple Cinnamon Latticed Hand Pies</h5></a>
                                <p>by <a href="#">Food.com</a></p>
                                <p><a>Make this recipe</a></p>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-md-2">
                            <div class="thumbnail">
                                <img src="./images/new2.jpg" alt="...">
                                <div class="caption">
                                <a href="#"><h5>Cran-Apricot California Salad</h5></a>
                                <p>by <a href="#">CLUBFOODY</a></p>
                                <p><a> Make this recipe</a></p>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-md-2">
                            <div class="thumbnail">
                                <img src="./images/new3.jpg" alt="...">
                                <div class="caption">
                                <a href="#"><h5>Margarita Jello Shot Wedges</h5></a>
                                <p>by <a href="#">Chef PotPie</a></p>
                                <p><a> Make this recipe</a></p>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-md-2">
                            <div class="thumbnail">
                                <img src="./images/new4.jpg" alt="...">
                                <div class="caption">
                                <a href="#"><h5>Quinoa Tabouli</h5></a>
                                <p>by <a href="#">winosity.app</a></p>
                                <p><a> Make this recipe</a></p>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-md-2">
                            <div class="thumbnail">
                                <img src="./images/new5.jpg" alt="...">
                                <div class="caption">
                                <a href="#"><h5>Ultimate Fruit Tray</h5></a>
                                <p>by <a href="#">Jonathan Melendez</a></p>
                                <p><a> Make this recipe</a></p>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6 col-md-2">
                            <div class="thumbnail">
                                <img src="./images/li8.jpg" alt="...">
                                <div class="caption">
                                <a href="#"><h5>Tasty Crock Pot BBQ Country Style Pork Ribs</h5></a>
                                <p>by <a href="#">Happy Happy George</a></p>
                                <p><a> Make this recipe</a></p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="top_collection what">
                <div class="col_center">
                    <div class='col-md-12 tre_title'>
                        <div class="col-md-12">
                        <a href="#"><h4>WHAT WE'RE CREATING NOW</h4></a>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-6 col-md-3 left_col">
                        <a href="#" class="thumbnail">
                            <img src="./images/what1.jpg" alt="...">
                        </a>
                        <span><a href="#">PHOTOS</a></span>
                        <h3><a href="#">88 ALL-TIME DINNER FAVORITES</a></h3>
                        </div>
                        <div class="col-xs-6 col-md-6 central_col">
                            <a href="#" class="thumbnail">
                            <img src="./images/what2.jpg" alt="...">
                            </a>
                            <span><a href="#">PHOTOS</a></span>
                            <h3><a href="#">TOP 100 GRILLING RECIPES</a></h3>
                        </div>
                        <div class="col-xs-6 col-md-3 right_col">
                            <a href="#" class="thumbnail">
                            <img src="./images/what3.jpg" alt="...">
                            </a>
                            <span><a href="#">PHOTOS</a></span>
                            <h3><a href="#">OUR 50 MOST-SAVED RECIPES</a></h3>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
    </main>
    <footer>
        <div class="foot_center">
            <div class="search_box">
                <div class="know"><p>I WANT TO KNOW</p><span class="search_span glyphicon glyphicon-search"></span></div>
                <div class="input_box">
                <input type="text" placeholder="Search here to try our suggesstion below">
                </div>
                <div class="line"></div>
            </div>
            <ul class="lis">
                <li><a href="">grilling</a></li>
                <li><a href="">top copycat recipes</a></li>
                <li><a href="">sheet span dinner</a></li>
                <li><a href="">watermelon dishes</a></li>
                <li style="margin-left: 20%;"><a href="">pasta salad</a></li style="margin-left: 25%;">
                <li><a href="">pantry recipes</a></li>
            </ul>
        </div>
        <div class="foot_bottom">
            <div class="bottom_center">
                <!-- <div class="b_left"></div>
                <div class="b_right"></div> -->
            </div>
        </div>
    </footer>
    
    <script>
        
        var num=0;
		var timer;
		function play(){
		timer=setInterval(function(){
			num++;
			if(num==3)num=0;
            $('.banner .banner_ul>li').eq(num).fadeIn(500).siblings().fadeOut(500);
            // $('.banner .title>ul>li').eq(num).fadeIn(800).siblings().fadeOut(800);
            $('.banner .title>ul>li').hide();
            $('.banner .title>ul>li').eq(num).fadeIn().siblings().fadeOut();
		},3000)
	}

        play();
                $('.banner .right_span,.left_span').mouseenter(function(){
				clearInterval(timer)
            })
                $('.banner .left_span').mouseenter(function(){
				$('.left_span').css('background','rgba(160,32,240,0.25)');
            })
                $('.banner .right_span').mouseenter(function(){
				$('.right_span').css('background','rgba(160,32,240,.25)');
            })
                $('.banner .right_span,.left_span').mouseleave(function(){
                play();
                $('.banner .right_span,.left_span').css('background','rgba(255,255,255,0.25)');
            })
		//右按钮			
				$('.banner .right_span').click(function(){
				num++;
				if(num==3)num=0;
                $('.banner .banner_ul li').eq(num).fadeIn(500).siblings().fadeOut(500);
                $('.banner .title>ul>li').hide();
                $('.banner .title>ul>li').eq(num).fadeIn().siblings().fadeOut();
				})
	    //左按钮
				$('.banner .left_span').click(function(){
				num--;
				if(num==-1)num=1;
                $('.banner .banner_ul li').eq(num).fadeIn(500).siblings().fadeOut(500);
                $('.banner .title>ul>li').hide();
                $('.banner .title>ul>li').eq(num).fadeIn().siblings().fadeOut();
				})
        
			$('.banner').mouseenter(function(){
				// clearInterval(timer);
				$('.left_span,.right_span').show();
			})		

			$('.banner').mouseleave(function(){
				// play();
				$('.left_span,.right_span').hide();
            })
        
        //span
            $('.banner .banner_ul>li>span').mouseenter(function(){
				// clearInterval(timer);
				$('.banner .banner_ul>li>span').css('background','#8B658B');
			})		

			$('.banner .banner_ul>li>span').mouseleave(function(){
				// play();
				$('.banner .banner_ul>li>span').css('background','powderblue');
            })

    </script>
</body>
</html>